<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: owen
  Date: 2017/3/26
  Time: 19:14
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<jsp:include page="side.jsp"/>
<jsp:include page="easyui.jsp"/>

<html>
<head>
    <title>添加产品</title>
</head>
<body>



<h1>添加产品</h1>
<form:form commandName="product" action="product_create" method="post">
    <fieldset style="text-align: center">
        <legend>Add a product</legend>
        <label for="t">产品类型</label>
        <form:select id="t" path="typeid" items="${productTypeList}"
                     itemLabel="name" itemValue="typeid"/>
        <label for="name">名称</label>
        <form:input path="name" id="name"/>
        <label for="brand">品牌</label>
        <form:input path="brand" id="brand"/>
        <p>
            <label for="price">价格</label>
                <form:input path="price" id="price"/>
            <label for="guarantee">保修</label>
                <form:input path="guarantee" id="guarantee"/>
            <label for="remark">备注</label>
                <form:input path="remark" id="remark"/>
    </fieldset>
    <p id="buttons">
        <input id="清空" type="reset" tabindex="4">
        <input id="提交" type="submit" tabindex="5" value="添加">
    </p>
</form:form>

</body>
</html>
